package com.cy.ppj.service;

import com.cy.ppj.comm.exception.MsgException;

/**
 * @description:
 * @author: Ocean
 * @create: 2018-07-17 19:25
 **/
public class BaseService {

    protected void state(boolean expression, String message) {
        if (!expression) {
            throw new MsgException(message);
        }
    }

}
